package tech.yangzhijie.basic.ioc;



import java.util.List;

public class UserService {

    private UserDao userDao;

    public User selectById(Integer id){
        return userDao.selectUserById(id);
    }

    public List<User> selectAll(){
        return userDao.selectUserAll();
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
